package xh.util;

import java.io.File;
import java.nio.charset.Charset;
import java.util.HashSet;
import java.util.Random;
import java.util.Set;

/**
 * Created by Administrator on 2016/6/25.
 */
public class Global {

    public static final File MusicDir = new File("F:\\music");

    public static final Charset DefaultCharset = Charset.forName("utf-8");

    public static MusicStore musicStore = new MusicStore();

    public static Set<String> MusicSuffix;

    static {
        MusicSuffix = new HashSet<String>();
        MusicSuffix.add("mp3");
        MusicSuffix.add("wav");
    }


    private static Random rand = new Random(System.currentTimeMillis());

    public static int rand(int limit) {
        return rand.nextInt(limit);
    }
}
